<?php
 /**
 * @package		Joomla.Site
 * @subpackage	com_contact
 * @copyright	Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved.
 * @license		GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;
JHtml::_('behavior.formvalidation');
$cparams = JComponentHelper::getParams ('com_media');
?>
<style>
form .invalid {
    background-color: #FFDDDD;
}
</style>
<section class="template">
    <div class="container">
        <div class="breadcrumb clearfix">
            {module Breadcrumbs}
        </div>
        <div class="content_template clearfix mb100">
            <div class="info_contact">
                <h2>{article 9}{title}{/article}</h2>
                {article 9}{introtext}{/article}
                <iframe src="https://www.google.com/maps/embed?pb=!1m14!1m8!1m3!1d3916.531258944826!2d106.86226254255936!3d10.998710049186608!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x3174dc5587d372bf%3A0xc10d4104ff47643f!2zcGjGsOG7nW5nIFRy4bqjbmcgRMOgaSwgVHLhuqNuZyBEw6BpLCB0cC4gQmnDqm4gSMOyYQ!5e0!3m2!1svi!2s!4v1403027925499" width="560" height="250" frameborder="0" style="border:0"></iframe>
            </div>
            <div class="frm_contact">
                <h2>Form Gửi Yêu Cầu</h2>
                <form id="contact-form" action="<?php echo JRoute::_('index.php'); ?>" method="post" class="form-validate" enctype="multipart/form-data">
                <div class="clearfix">
                    <label for="">Họ và tên <span>*</span></label>
                    <input type="text" class="required" value="" id="jform_re_name" name="jform[re_name]">
                </div>
                <div class="clearfix">
                    <label for="">Giới tính <span>*</span></label>
                    <select class="required" id="jform_re_gender" name="jform[re_gender]">
                        <option value="0">- Chọn -</option>
                        <option value="1">Nam</option>
                        <option value="2">Nữ</option>
                        <option value="3">Khác</option>
                    </select>
                </div>
                <div class="clearfix">
                    <label for="">Ngày tháng năm sinh <span>*</span></label>
                    <input type="text" id="jform_re_birthday" class="required" name="jform[re_birthday]">
                </div>
                <div class="clearfix">
                    <label for="">Địa chỉ <span>*</span></label>
                    <input type="text" id="jform_re_address" class="required" name="jform[re_address]">
                </div>
                <div class="clearfix">
                    <label for="">Email <span>*</span></label>
                    <input type="email" value="" id="jform_re_email" class="validate-email required" name="jform[re_email]">
                </div>
                <div class="clearfix">
                    <label for="">Điện thoại <span>*</span></label>
                    <input type="text" id="jform_re_phone" class="required" name="jform[re_phone]">
                </div>
                <div class="clearfix">
                    <label for="">Vị trí mong muốn <span>*</span></label>
                    <input type="text" id="jform_re_position" class="required" name="jform[re_position]">
                </div>
                <div class="clearfix">
                    <label for="">Nội dung ứng tuyển<span>*</span></label>
                    <textarea class="required" id="jform_re_content" name="jform[re_content]"></textarea>
                </div>
                <div class="clearfix">
                    <label for="">File đính kèm</label>
                    <input type="file" value="" id="jform_contact_attach" name="re_attach">
                </div>
                <p>Những ô có dấu <span>*</span> là bắt buộc</p>
                <button class="btnLienhe2 validate" type="submit">Gửi liên hệ</button>
                <input type="hidden" name="option" value="com_contact" />
                <input type="hidden" name="task" value="contact.submit1" />
                <input type="hidden" name="return" value="<?php echo $this->return_page;?>" />
                <input type="hidden" name="id" value="<?php echo $this->contact->slug; ?>" />
                <?php echo JHtml::_( 'form.token' ); ?>
                </form>
            </div>
        </div>
    </div>
</section>